package com;

import com.features.CPUCommand;
import com.features.FileSysCommand;
import com.features.MemCommand;
import com.features.NetCommand;
import com.features.PlatCommand;

/** <p>Title: 程序入口</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2011</p>
 * @author zhangzuoqiang   
 * @version 1.0
 * <br/>Date: 2011-5-10
 */
public class Main {
	
	public static void main(String[] args) {
		
		CPUCommand cpu = new CPUCommand();
		MemCommand mem = new MemCommand();
		PlatCommand platform = new PlatCommand();
		FileSysCommand filesys = new FileSysCommand();
		NetCommand net = new NetCommand();
		
		traceln("CPU数目: " + cpu.getCpuCount());
		traceln("CPU的总量（单位：HZ）及CPU的相关信息: " + cpu.getCpuInfos());
		traceln("当前cpu状态信息: " + cpu.getCpuPerc());
		
		traceln("物理内存信息: " + mem.getPhyMemInfo());
		traceln("系统页面文件交换区信息: " + mem.getSwapInfo());
		
		traceln("当前操作系统的名称: " + platform.getPlatformName());
		traceln("当前操作系统的信息: " + platform.getGetOSInfo());
		traceln("当前系统进程表中的用户信息: " + platform.getWhos());
		
		filesys.getFileSystemInfo();
		
		net.getFQDN();
		net.getDefaultIpAddress();
		net.getMACList();
//		net.getGUID();
		net.getNetIfList();
		net.getEthernetInfo();
		
	}
	
	
	public static void trace(Object object){
		System.out.print(object.toString());
	}
	
	public static void traceln(Object object){
		System.out.println(object.toString());
	}

}
